package xuegao.study.mall.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 该controller用于解析token
 * 请求之前先想oauth2服务器发送请求,获取token POST
 * http://localhost:8080/study-oauth2-service/oauth/token?grant_type=password&username=admin&password=123456&client_id=app-client&client_secret=client-secret-8888&scope=all
 */
@RestController
@RequestMapping
public class HelloController {

    @GetMapping(value = "/zuul/info")
    public String jwtParser() {
        return "zuul gateway";
    }
}
